-- GENERATED SPELL FOR [Young Crust Burster] --


function spell0_21381(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(21067,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21381', 12500, 1)
end

function spell1_21381(pUnit, Event) --@Rush,n/a--
pUnit:FullCastSpellOnTarget(37359,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21381', 5283, 1)
end

function Sorts_21381(pUnit, Event)
local choix_sorts_21381 = math.random(0, 1)
if choix_sorts_21381 == 0 then
pUnit:RegisterEvent('spell0_21381', 1, 1)
end
if choix_sorts_21381 == 1 then
pUnit:RegisterEvent('spell1_21381', 1, 1)
end
end

function mob21381_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21381', math.random(1500, 3000), 1)
end

function mob21381_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21381_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21381_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21381, 1, 'mob21381_Action')
RegisterUnitEvent(21381, 2, 'mob21381_Leave')
RegisterUnitEvent(21381, 3, 'mob21381_Kill')
RegisterUnitEvent(21381, 4, 'mob21381_Die')
